package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:26 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class Workspace implements java.io.Serializable {

  public Workspace() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private java.util.Date createTime;

  /** Attribute createTime Be Seted Falg */
  private boolean createTimeSetted = false;

  /** Attribute createTime is Null Falg */
  private boolean createTimeNull = false;

  /**
   * Get createTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getCreateTime() {

    return createTime;
  }

  /**
   * Set createTime
   *
   * @param java.util.Date
   */
  public final void setCreateTime(java.util.Date createTime) {

    this.createTime = createTime;

    this.createTimeSetted = true;

    this.setCreateTimeNull(this.createTime == null);
  }

  /**
   * Get createTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isCreateTimeSetted() {
    return this.createTimeSetted;
  }

  /** Set createTime Null */
  public final void setCreateTimeNull() {

    this.createTimeNull = true;
  }

  public final void setCreateTimeNull(boolean aNullFlag) {

    this.createTimeNull = aNullFlag;
  }

  public final boolean isCreateTimeNull() {

    return this.createTimeNull;
  }

  private String name;

  /** Attribute name Be Seted Falg */
  private boolean nameSetted = false;

  /** Attribute name is Null Falg */
  private boolean nameNull = false;

  /**
   * Get name
   *
   * @return String
   */
  public final String getName() {

    if (isNameNull()) {
      return null;
    } else {
      return StringUtils.trim(name);
    }
  }

  /**
   * Set name
   *
   * @param String
   */
  public final void setName(String name) {

    this.name = StringUtils.trim(name);

    this.nameSetted = true;

    this.setNameNull(this.name == null);
  }

  /**
   * Get name Has Been Setted
   *
   * @return boolean
   */
  public final boolean isNameSetted() {
    return this.nameSetted;
  }

  /** Set name Null */
  public final void setNameNull() {

    this.nameNull = true;
  }

  public final void setNameNull(boolean aNullFlag) {

    this.nameNull = aNullFlag;
  }

  public final boolean isNameNull() {

    return this.nameNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String workspacePath;

  /** Attribute workspacePath Be Seted Falg */
  private boolean workspacePathSetted = false;

  /** Attribute workspacePath is Null Falg */
  private boolean workspacePathNull = false;

  /**
   * Get workspacePath
   *
   * @return String
   */
  public final String getWorkspacePath() {

    if (isWorkspacePathNull()) {
      return null;
    } else {
      return StringUtils.trim(workspacePath);
    }
  }

  /**
   * Set workspacePath
   *
   * @param String
   */
  public final void setWorkspacePath(String workspacePath) {

    this.workspacePath = StringUtils.trim(workspacePath);

    this.workspacePathSetted = true;

    this.setWorkspacePathNull(this.workspacePath == null);
  }

  /**
   * Get workspacePath Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspacePathSetted() {
    return this.workspacePathSetted;
  }

  /** Set workspacePath Null */
  public final void setWorkspacePathNull() {

    this.workspacePathNull = true;
  }

  public final void setWorkspacePathNull(boolean aNullFlag) {

    this.workspacePathNull = aNullFlag;
  }

  public final boolean isWorkspacePathNull() {

    return this.workspacePathNull;
  }

  private String workspaceType;

  /** Attribute workspaceType Be Seted Falg */
  private boolean workspaceTypeSetted = false;

  /** Attribute workspaceType is Null Falg */
  private boolean workspaceTypeNull = false;

  /**
   * Get workspaceType
   *
   * @return String
   */
  public final String getWorkspaceType() {

    if (isWorkspaceTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(workspaceType);
    }
  }

  /**
   * Set workspaceType
   *
   * @param String
   */
  public final void setWorkspaceType(String workspaceType) {

    this.workspaceType = StringUtils.trim(workspaceType);

    this.workspaceTypeSetted = true;

    this.setWorkspaceTypeNull(this.workspaceType == null);
  }

  /**
   * Get workspaceType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceTypeSetted() {
    return this.workspaceTypeSetted;
  }

  /** Set workspaceType Null */
  public final void setWorkspaceTypeNull() {

    this.workspaceTypeNull = true;
  }

  public final void setWorkspaceTypeNull(boolean aNullFlag) {

    this.workspaceTypeNull = aNullFlag;
  }

  public final boolean isWorkspaceTypeNull() {

    return this.workspaceTypeNull;
  }

  private String description;

  /** Attribute description Be Seted Falg */
  private boolean descriptionSetted = false;

  /** Attribute description is Null Falg */
  private boolean descriptionNull = false;

  /**
   * Get description
   *
   * @return String
   */
  public final String getDescription() {

    if (isDescriptionNull()) {
      return null;
    } else {
      return StringUtils.trim(description);
    }
  }

  /**
   * Set description
   *
   * @param String
   */
  public final void setDescription(String description) {

    this.description = StringUtils.trim(description);

    this.descriptionSetted = true;

    this.setDescriptionNull(this.description == null);
  }

  /**
   * Get description Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDescriptionSetted() {
    return this.descriptionSetted;
  }

  /** Set description Null */
  public final void setDescriptionNull() {

    this.descriptionNull = true;
  }

  public final void setDescriptionNull(boolean aNullFlag) {

    this.descriptionNull = aNullFlag;
  }

  public final boolean isDescriptionNull() {

    return this.descriptionNull;
  }

  private long submitterId;

  /** Attribute submitterId Be Seted Falg */
  private boolean submitterIdSetted = false;

  /** Attribute submitterId is Null Falg */
  private boolean submitterIdNull = false;

  /**
   * Get submitterId
   *
   * @return long
   */
  public final long getSubmitterId() {

    return submitterId;
  }

  /**
   * Set submitterId
   *
   * @param long
   */
  public final void setSubmitterId(long submitterId) {

    this.submitterId = submitterId;

    this.submitterIdSetted = true;

    this.setSubmitterIdNull(false);
  }

  /**
   * Get submitterId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSubmitterIdSetted() {
    return this.submitterIdSetted;
  }

  /** Set submitterId Null */
  public final void setSubmitterIdNull() {

    this.submitterIdNull = true;
  }

  public final void setSubmitterIdNull(boolean aNullFlag) {

    this.submitterIdNull = aNullFlag;
  }

  public final boolean isSubmitterIdNull() {

    return this.submitterIdNull;
  }

  private String creatorName;

  /** Attribute creatorName Be Seted Falg */
  private boolean creatorNameSetted = false;

  /** Attribute creatorName is Null Falg */
  private boolean creatorNameNull = false;

  /**
   * Get creatorName
   *
   * @return String
   */
  public final String getCreatorName() {

    if (isCreatorNameNull()) {
      return null;
    } else {
      return StringUtils.trim(creatorName);
    }
  }

  /**
   * Set creatorName
   *
   * @param String
   */
  public final void setCreatorName(String creatorName) {

    this.creatorName = StringUtils.trim(creatorName);

    this.creatorNameSetted = true;

    this.setCreatorNameNull(this.creatorName == null);
  }

  /**
   * Get creatorName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isCreatorNameSetted() {
    return this.creatorNameSetted;
  }

  /** Set creatorName Null */
  public final void setCreatorNameNull() {

    this.creatorNameNull = true;
  }

  public final void setCreatorNameNull(boolean aNullFlag) {

    this.creatorNameNull = aNullFlag;
  }

  public final boolean isCreatorNameNull() {

    return this.creatorNameNull;
  }

  private String lastModifierName;

  /** Attribute lastModifierName Be Seted Falg */
  private boolean lastModifierNameSetted = false;

  /** Attribute lastModifierName is Null Falg */
  private boolean lastModifierNameNull = false;

  /**
   * Get lastModifierName
   *
   * @return String
   */
  public final String getLastModifierName() {

    if (isLastModifierNameNull()) {
      return null;
    } else {
      return StringUtils.trim(lastModifierName);
    }
  }

  /**
   * Set lastModifierName
   *
   * @param String
   */
  public final void setLastModifierName(String lastModifierName) {

    this.lastModifierName = StringUtils.trim(lastModifierName);

    this.lastModifierNameSetted = true;

    this.setLastModifierNameNull(this.lastModifierName == null);
  }

  /**
   * Get lastModifierName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastModifierNameSetted() {
    return this.lastModifierNameSetted;
  }

  /** Set lastModifierName Null */
  public final void setLastModifierNameNull() {

    this.lastModifierNameNull = true;
  }

  public final void setLastModifierNameNull(boolean aNullFlag) {

    this.lastModifierNameNull = aNullFlag;
  }

  public final boolean isLastModifierNameNull() {

    return this.lastModifierNameNull;
  }

  private java.util.Date lastModifyTime;

  /** Attribute lastModifyTime Be Seted Falg */
  private boolean lastModifyTimeSetted = false;

  /** Attribute lastModifyTime is Null Falg */
  private boolean lastModifyTimeNull = false;

  /**
   * Get lastModifyTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getLastModifyTime() {

    return lastModifyTime;
  }

  /**
   * Set lastModifyTime
   *
   * @param java.util.Date
   */
  public final void setLastModifyTime(java.util.Date lastModifyTime) {

    this.lastModifyTime = lastModifyTime;

    this.lastModifyTimeSetted = true;

    this.setLastModifyTimeNull(this.lastModifyTime == null);
  }

  /**
   * Get lastModifyTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastModifyTimeSetted() {
    return this.lastModifyTimeSetted;
  }

  /** Set lastModifyTime Null */
  public final void setLastModifyTimeNull() {

    this.lastModifyTimeNull = true;
  }

  public final void setLastModifyTimeNull(boolean aNullFlag) {

    this.lastModifyTimeNull = aNullFlag;
  }

  public final boolean isLastModifyTimeNull() {

    return this.lastModifyTimeNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof Workspace) == false) {
      return false;
    }
    Workspace other = (Workspace) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("createTime=");
    buffer.append(this.createTime);

    buffer.append("name=");
    buffer.append(this.name);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("workspacePath=");
    buffer.append(this.workspacePath);

    buffer.append("workspaceType=");
    buffer.append(this.workspaceType);

    buffer.append("description=");
    buffer.append(this.description);

    buffer.append("submitterId=");
    buffer.append(this.submitterId);

    buffer.append("creatorName=");
    buffer.append(this.creatorName);

    buffer.append("lastModifierName=");
    buffer.append(this.lastModifierName);

    buffer.append("lastModifyTime=");
    buffer.append(this.lastModifyTime);

    buffer.append("]");

    return buffer.toString();
  }
}
